package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.domain.Custurn;
import cn.wolfcode.crm.query.impl.CustomerQuery;
import cn.wolfcode.crm.util.PageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICustomerService {
//当前的项目中因为顾客与员工存在着外间关联所以不设置删除功能
    void saveOrUpdate(Customer record);

    void delete(Long id);

    Customer get(Long id);

    PageResult query(CustomerQuery qo);

    List<Customer> selectAll(CustomerQuery qo);

    void setInchargeuser(Custurn custurn);

    void  moveResource(Long id);

    void  setOfficial(@Param("id") Long id, @Param("chargeId") Long chargeId);


    List<Customer> getAll();
}
